import request from '@/utils/request'

export function fetcheRoleUserList(data) {
  return request({
    url: '/cloud-system/getRoleUserList',
    method: 'post',
    data
  })
}

export function fetcheRoleUserOne(data) {
  return request({
    url: '/cloud-system/getOneRoleUserDetail',
    method: 'post',
    data
  })
}

export function createRoleUser(data) {
  return request({
    url: '/cloud-system/createOneRoleUser',
    method: 'post',
    data
  })
}

export function updateRoleUser(data) {
  return request({
    url: '/cloud-system/updateOneRoleUser',
    method: 'post',
    data
  })
}

export function deleteRoleUser(data) {
  return request({
    url: '/cloud-system/deleteOneRoleUser',
    method: 'post',
    data
  })
}

export function lockRoleUser(data) {
  return request({
    url: '/cloud-system/lockOneRoleUser',
    method: 'post',
    data
  })
}

export function unlockRoleUser(data) {
  return request({
    url: '/cloud-system/unlockOneRoleUser',
    method: 'post',
    data
  })
}
